onEvent('recipes', (event) => {
    event.remove({ type: "theurgy:essentia" });
    event.remove({ type: "theurgy:transmutation" });
    event.remove({ type: "theurgy:purification" });
    event.remove({ type: "theurgy:replication" });



    // event.custom({
    //     "type": "theurgy:essentia",
    //     "ingredient": { "item": "evilcraft:promise_acceptor_iron" },
    //     "essentia": [
    //         { "item": "theurgy:aer_essentia", "count": 500 },
    //         { "item": "theurgy:ignis_essentia", "count": 200 },
    //         { "item": "theurgy:terra_essentia", "count": 200 },
    //         { "item": "theurgy:aqua_essentia", "count": 200 }],
    // });

    //'astralsorcery:aquamarine'
    let terra = [
        {
            item : 'tconstruct:seared_brick',
            count : 4
        },
        {
            item : 'minecraft:flint',
            count : 1
        },
        {
            item : 'astralsorcery:attuned_rock_crystal',
            count : 15
        },
        {
            item : 'minecraft:obsidian',
            count : 3
        }
    ]
    let aqua = [
        {
            item : 'astralsorcery:aquamarine',
            count : 4
        },
        {
            item : 'forbidden_arcanus:ender_pearl_fragment',
            count : 2
        },
        {
            item : 'projectred-core:electrotine_dust',
            count : 15
        },
        {
            item : 'minecraft:ice',
            count : 3
        }
    ]
    terra.forEach((i)=>{
        event.custom({
            "type": "theurgy:essentia",
            "ingredient": { "item": i.item },
            "essentia": [
                { "item": "theurgy:terra_essentia", "count": i.count }
            ],
        });
    });
    aqua.forEach((i)=>{
        event.custom({
            "type": "theurgy:essentia",
            "ingredient": { "item": i.item },
            "essentia": [
                { "item": "theurgy:aqua_essentia", "count": i.count }
            ],
        });
    });





    // event.custom({
    //     "type": "theurgy:purification",
    //     "ingredient": { "item": 'minecraft:water_bucket' }, //input
    //     "essentia": [
    //         { "item": "theurgy:aqua_essentia", "count": 1000 },
    //         { "item": "minecraft:air", "count": 0 },
    //         { "item": "theurgy:terra_essentia", "count": 500 }],
    //     "result": { "item": 'minecraft:lava_bucket', "count": 1 }, //output
    // });

    event.custom({
        "type": "theurgy:purification",
        "ingredient": { "item": 'theurgy:iron_stirrer' }, //input
        "essentia": [
            { "item": "theurgy:aqua_essentia", "count": 5 }],
        "result": { "item": 'astralsorcery:linking_tool', "count": 1 }, //output
    });

    event.custom({
        "type": "theurgy:purification",
        "ingredient": { "item": 'minecraft:iron_ingot' }, //input
        "essentia": [
            { "item": "theurgy:aqua_essentia", "count": 10 },
            { "item": "theurgy:terra_essentia", "count": 4 }],
        "result": { "item": 'kubejs:aquamarine_ingot', "count": 1 }, //output
    });

    event.custom({
        "type": "theurgy:purification",
        "ingredient": { "item": 'emendatusenigmatica:bronze_gear' }, //input
        "essentia": [
            { "item": "theurgy:aqua_essentia", "count": 32 },
            { "item": "theurgy:terra_essentia", "count": 32 }],
        "result": { "item": 'quark:diamond_heart', "count": 1 }, //output
    });




});